<?php
class User_Form_ResetPassword extends Custom_Form
{
    
    public function init()
    {
        $translate = Zend_Registry::get('translate');
        $passwordConfirmation = new Custom_Validate_PasswordConfirmation();
        $this->setName("resetpassword");
        $this->setMethod('post');

        $this->addElement('password', 'password', array(
            'label' => $translate->_('Password'),
            'filters'    => array('StringTrim'),
            'required' => true,
        ));

        $this->addElement('password', 'password_confirm', array(
            'required' => true,
            'filters'    => array('StringTrim'),
            'label' => $translate->_('Confirm Password'),
           
        ));

        $this->addElement('submit', 'Reset Password', 
                            array('ignore' => true, 
                                 'required' => false,
                                 'label' => $translate->_('Reset password'),
                                  ));

        $element = $this->getElement('Reset Password');
        $element->removeDecorator('label');
        $this->password->addErrorMessage($translate->_('ERR_SIGNUP_PASSWORD'));
        $this->password_confirm->addErrorMessage($translate->_('ERR_SIGNUP_CONFIRMPASSWORD'));
        
    }
    
}

?>